<div class="boundingbox">
  <h1>Showing all jobs</h1>
  <p><%= link_to 'Create new', :action => 'new' %>

  <% for job in @jobs do %>
    <p>
      <%=h job.jid %> || <%= h(job.job_title) %> || <%= link_to 'Edit', :action => 'edit', :id => job.id %> || <a href="/admin/delete/<%= job.id %>" onclick="if (confirm('Are you sure?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;f.submit(); };return false;">Delete</a>
    </p>
  <% end %>
</div>

<div class="boundingbox">
  <h1>Edit sectors</h1>
  <%= link_to 'Create new', :action => 'sectornew' %>
  <ul id="sectorlist">
    <% @sectors.each do |s| %>
      <li id="sector_<%= s.id -%>">
          <%= s.name %>
          <br/>
          <p>
            <%= link_to 'Rename', :action => 'sectoredit', :id => s.id %>
          </p>
      </li>
    <% end %>
  </ul>
</div>